<template>
  <div class="hello">
    this is elema project
    <p>{{msg}}</p>
    <span class="icon-add_circle"></span>
  </div>
</template>

<script>
/**
 * 适用axios来测试数据
 */
import axios from 'axios'
export default {
  name: 'HelloWorld',
  data () {
    return {
      msg: 'Welcome to Your Vue.js App'
    }
  },
  created () {
    axios.get('/good/seller').then(
      res => {
        if (res.data.code === 0) {
          // 证明data可用了
          console.log(res.data.data)   
        }
      }
    )
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
/* 引入css的方式 stylus-loader -> postcss-loader -> css-loader -> (使用extract插件插入link) */
@import '../../static/style.css';

</style>
